import request from '@/utils/request'

// 查询包装列表
export function listPacking(query) {
  return request({
    url: '/mes/fb/packing/list',
    method: 'get',
    params: query
  })
}

// 查询包装详细
export function getPacking(recordId) {
  return request({
    url: '/mes/fb/packing/' + recordId,
    method: 'get'
  })
}

// 新增包装
export function addPacking(data) {
  return request({
    url: '/mes/fb/packing',
    method: 'post',
    data: data
  })
}

// 修改包装
export function updatePacking(data) {
  return request({
    url: '/mes/fb/packing',
    method: 'put',
    data: data
  })
}

// 删除包装
export function delPacking(recordId) {
  return request({
    url: '/mes/fb/packing/' + recordId,
    method: 'delete'
  })
}
